package de.tum.in.eist.im.shared;


/**
 * his event is used for the case when a user invited to a group in EIST_IM.  
 * @author pascal fritzen
 */
public class GroupEvent extends AbstractEvent {

	private static final long serialVersionUID = 1L;
	
	private Group group;
	private User askingUser;
	private User logUser;
	private User invitedUser;
	private boolean isFounding = false;
	private boolean isInvite = false;
	private boolean isLogin = false;

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	public User getInvitedUser() {
		return invitedUser;
	}

	public void setInvitedUser(User invitedUser) {
		this.invitedUser = invitedUser;
	}

	public void setAskingUser(User askingUser) {
		this.askingUser = askingUser;
	}

	public User getAskingUser() {
		return askingUser;
	}
	
	public void setInvite(boolean isInvite) {
		this.isInvite = isInvite;
	}
	
	public boolean isInvite() {
		return isInvite;
	}

	public void setLogin(boolean isLogin) {
		this.isLogin = isLogin;
	}

	public boolean isLogin() {
		return isLogin;
	}

	public void setLogUser(User newUser) {
		this.logUser = newUser;
	}

	public User getLogUser() {
		return logUser;
	}

	public void setFounding(boolean isFounding) {
		this.isFounding = isFounding;
	}

	public boolean isFounding() {
		return isFounding;
	}
}
